package com.dlwx.parttimetalent.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;

import com.dlwx.parttimetalent.R;
import com.dlwx.parttimetalent.bean.NoSetIntentBean;
import com.dlwx.parttimetalent.utils.DisplayUtil;

/**
 * Created by Administrator on 2018/1/6.
 */

public class WorkIndustryAdapter extends ListBaseAdapter<NoSetIntentBean.BodyBean> {
    private Context context;
    public WorkIndustryAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_dialog_filter;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        NoSetIntentBean.BodyBean bean = getDataList().get(position);
        TextView tv_title=holder.getView(R.id.tv_title);
        ViewGroup.LayoutParams params = tv_title.getLayoutParams();
        int d=DisplayUtil.dip2px(context,16);
        tv_title.setPadding(d,d,d,d);
        tv_title.setText(bean.getClassname());
    }
}
